<div id="view-content">
	<div id="col" class="box">
		<h4>Thời gian còn lại 
			<span class="time-expire" >
				<?php if(isset($this->second)) echo $this->second ;?>
			</span> 
		</h4>
		
		<form class="exameForm" action="<?php echo $this->baseUrl('front/exame/getexame/'); ?>" method="post" name="doexame" >
			<input type="hidden" name="hd-hocKy" value="<?php echo $this->exameCurrentDo['hocKy'];?>">
			<input type="hidden" name="hd-namHoc" value="<?php echo $this->exameCurrentDo['namHoc'];?>">
		<?php 
			if(isset($_GET['do'])){
				$stt = 0;
				foreach ($this->paginatorExame as $exame) {
					$stt++;
		?>
			<p class="exame-question">
				<?php 
					echo '<span>Câu '.$stt.': </span>';
					echo $exame['tenCauHoi'];
				?>
			</p>
			<p class="ans-a">A) <?php echo $exame['a'];?></p>
			<p class="ans-b">B) <?php echo $exame['b'];?></p>
			<p class="ans-c">C) <?php echo $exame['c'];?></p>
			<?php 
			if(!empty($exame['d'])){
				echo '<p class="ans-d">D) '.$exame['d'].'</p>';
			}
			if(!empty($exame['d'])){
				echo '<p class="ans-e">E) '.$exame['e'].'</p>';
			}
			?>
			<p class="exame-question-true">Đáp án đúng: 
				<input type="radio" name="<?php echo $stt;?>" value="a|<?php echo $exame['idCauHoi'];?>" /><span>Đáp án A</span>
				<input type="radio" name="<?php echo $stt;?>" value="b|<?php echo $exame['idCauHoi'];?>" /><span>Đáp án B</span>
				<input type="radio" name="<?php echo $stt;?>" value="c|<?php echo $exame['idCauHoi'];?>" /><span>Đáp án C</span>
				<?php 
					if(!empty($exame['d'])){
						echo '<input type="radio" name="'.$stt.'" value="d|'.$exame['idCauHoi'].'" /><span>Đáp án E</span>';
					}
					if(!empty($exame['e'])){
						echo '<input type="radio" name="'.$stt.'" value="e|'.$exame['idCauHoi'].'" /><span>Đáp án E</span>';
					}
				?>
			</p>
		
		<?php } 
			$session = new Zend_Session_Namespace('numRowQuesstion');
			$session->total = $stt;
		?>
			<br>
			<input type="submit" name="cmdDoneExame" value="Hoàn thành" class="exame-form-submit">
		</form>
		<?php 
//				echo $this->paginationControl($this->paginatorExame,'sliding','paginator.phtml');
			}else {
		?>
		
		
		<h4>Bạn có chắc chắn là muốn làm bài kiểm tra này ngay bây giờ</h4>
		<div class="exame-intro">
			<a class="link-bt" href="<?php echo $this->baseUrl('front/exame/doexame/?do&id='.$_GET['id']);?>">Bắt đầu làm</a>
			<a class="link-bt" href="<?php echo $this->baseUrl('front/exame/index/');?>">Trở về trước</a>						 
		</div>	
		<?php }?>	
	</div>
	
</div>